package com.vito.dcs.trajectory.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vito.base.authoriza.model.PageInfo;

/**
 * 
 * 
 * @author zsk
 * @date 2019年4月22日  
 * @version 
 * @Description运输车辆数据轨迹坐存储实体
 *
 */
public class DataTransactionModel extends PageInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String id;//主键

	private String mac;//设备MAC
	
	private String transId;//车辆id（tbl_dcs_sys_transport_vehicle表主键）
	
	private String isHandler;//是否处理0未处理1已处理 (默认未处理0)
	
	private Double lat;//经度
	
	private Double lng;//纬度
	
	private Double height;//高度
	
	private Double weight;//载重
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;//创建时间
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date time;//上报时间

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}

	public String getIsHandler() {
		return isHandler;
	}

	public void setIsHandler(String isHandler) {
		this.isHandler = isHandler;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public Double getHeight() {
		return height;
	}

	public void setHeight(Double height) {
		this.height = height;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "DataTransactionModel [id=" + id + ", mac=" + mac + ", transId="
				+ transId + ", isHandler=" + isHandler + ", lat=" + lat
				+ ", lng=" + lng + ", height=" + height + ", weight=" + weight
				+ ", createTime=" + createTime + ", time=" + time + "]";
	}
}
